<?php
/**
 * VariablesModel
 *  
 * @author rodrigo
 * @version 
 */
class VariablesModel extends Zwei_Db_Table
{
    /**
     * The default table name 
     */
    protected $_name = 'variables';
    protected $_name_recursos = 'recursos';
    
    
    public function select(){
    	$select=new Zend_Db_Table_Select($this);
    	$select->setIntegrityCheck(false);
    	$select->from($this->_name)
    	->joinLeft($this->_name_recursos,
    	   "$this->_name.recursos_id=$this->_name_recursos.id", 
    	   array('recurso'=>'nombre')
    	);
    	return $select;
    }
    
}
